<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Library Evolutionary Algorithms for Clustering (LEAC): stats Namespace Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="leac_logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Library Evolutionary Algorithms for Clustering (LEAC)
   &#160;<span id="projectnumber">Version 1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">stats Namespace Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Model for transforming the data structure of the instances.  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a61ea16e97e098fc1598f4a2975cb0a24"><td class="memTemplParams" colspan="2">template&lt;typename T_FEATURE , typename T_FEATURE_SUM , typename T_FEATURE_NUM &gt; </td></tr>
<tr class="memitem:a61ea16e97e098fc1598f4a2975cb0a24"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacestats.html#a61ea16e97e098fc1598f4a2975cb0a24">meanVector</a> (T_FEATURE *aoarrayt_mean, const T_FEATURE_NUM ait_feactureNum, const T_FEATURE_SUM *aiarrayt_feactureSum, const <a class="el" href="common_8hpp.html#a3f6c33fb604556cdc425e7aa2289d009">uintidx</a> aiu_idxVector=0)</td></tr>
<tr class="memdesc:a61ea16e97e098fc1598f4a2975cb0a24"><td class="mdescLeft">&#160;</td><td class="mdescRight">￼Calculate average of a vector  <a href="#a61ea16e97e098fc1598f4a2975cb0a24">More...</a><br /></td></tr>
<tr class="separator:a61ea16e97e098fc1598f4a2975cb0a24"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a706b4964413c76c4c7d34ab17985e9e4"><td class="memTemplParams" colspan="2">template&lt;typename INPUT_ITERATOR , typename T_FEATURE_SUM , typename T_FEATURE &gt; </td></tr>
<tr class="memitem:a706b4964413c76c4c7d34ab17985e9e4"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacestats.html#a706b4964413c76c4c7d34ab17985e9e4">sumFeactures</a> (T_FEATURE_SUM *aoarrayt_sumFeactures, INPUT_ITERATOR aiiterator_instfirst, const INPUT_ITERATOR aiiterator_instlast, const T_FEATURE ait_initialValue)</td></tr>
<tr class="memdesc:a706b4964413c76c4c7d34ab17985e9e4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add the instances by attributes.  <a href="#a706b4964413c76c4c7d34ab17985e9e4">More...</a><br /></td></tr>
<tr class="separator:a706b4964413c76c4c7d34ab17985e9e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a613d1db29f5e2b636315f547fb1ba89a"><td class="memTemplParams" colspan="2">template&lt;typename INPUT_ITERATOR , typename T_FEATURE_SUM , typename T_FEATURE , typename FUNCTIONFREQ &gt; </td></tr>
<tr class="memitem:a613d1db29f5e2b636315f547fb1ba89a"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="common_8hpp.html#a3f6c33fb604556cdc425e7aa2289d009">uintidx</a>&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacestats.html#a613d1db29f5e2b636315f547fb1ba89a">sumFeacturesFreq</a> (T_FEATURE_SUM *aoarrayt_sumFeactures, INPUT_ITERATOR aiiterator_instfirst, const INPUT_ITERATOR aiiterator_instlast, const T_FEATURE ait_initialValue, const FUNCTIONFREQ func_freq)</td></tr>
<tr class="memdesc:a613d1db29f5e2b636315f547fb1ba89a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add the instances with frequency by attributes.  <a href="#a613d1db29f5e2b636315f547fb1ba89a">More...</a><br /></td></tr>
<tr class="separator:a613d1db29f5e2b636315f547fb1ba89a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9997daae39cbd737fb66c52d182e8e6b"><td class="memTemplParams" colspan="2">template&lt;typename T_FEATURE , typename T_FEATURE_SUM &gt; </td></tr>
<tr class="memitem:a9997daae39cbd737fb66c52d182e8e6b"><td class="memTemplItemLeft" align="right" valign="top">std::vector&lt; T_FEATURE &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacestats.html#a9997daae39cbd737fb66c52d182e8e6b">meanRow</a> (const <a class="el" href="classmat_1_1_matrix_row.html">mat::MatrixRow</a>&lt; T_FEATURE &gt; &amp;aimatrixrowt_instances)</td></tr>
<tr class="memdesc:a9997daae39cbd737fb66c52d182e8e6b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Obtiene un vector con la media de una matriz por columnas.  <a href="#a9997daae39cbd737fb66c52d182e8e6b">More...</a><br /></td></tr>
<tr class="separator:a9997daae39cbd737fb66c52d182e8e6b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6b3be9207e48f3af2c75ad45db17ac70"><td class="memTemplParams" colspan="2">template&lt;typename INPUT_ITERATOR , typename T_FEATURE_SUM , typename T_FEATURE &gt; </td></tr>
<tr class="memitem:a6b3be9207e48f3af2c75ad45db17ac70"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacestats.html#a6b3be9207e48f3af2c75ad45db17ac70">sumFeacturesSQ</a> (T_FEATURE_SUM *aoarrayt_sumFeacturesSQ, T_FEATURE *aiarrayt_meanFeactures, INPUT_ITERATOR aiiterator_instfirst, const INPUT_ITERATOR aiiterator_instlast)</td></tr>
<tr class="memdesc:a6b3be9207e48f3af2c75ad45db17ac70"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the sum of the difference of the instances with the mean and the result square.  <a href="#a6b3be9207e48f3af2c75ad45db17ac70">More...</a><br /></td></tr>
<tr class="separator:a6b3be9207e48f3af2c75ad45db17ac70"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2f3cfb3a90ba9b5bdfe177054cdbde56"><td class="memTemplParams" colspan="2">template&lt;typename INPUT_ITERATOR , typename T_FEATURE_SUM , typename T_FEATURE , typename FUNCTIONFREQ &gt; </td></tr>
<tr class="memitem:a2f3cfb3a90ba9b5bdfe177054cdbde56"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacestats.html#a2f3cfb3a90ba9b5bdfe177054cdbde56">sumFeacturesFreqSQ</a> (T_FEATURE_SUM *aoarrayt_sumFeacturesSQ, T_FEATURE *aiarrayt_meanFeactures, INPUT_ITERATOR aiiterator_instfirst, const INPUT_ITERATOR aiiterator_instlast, const FUNCTIONFREQ func_freq)</td></tr>
<tr class="memdesc:a2f3cfb3a90ba9b5bdfe177054cdbde56"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the sum of the difference of the instances with the mean and the result square. For instances frequently.  <a href="#a2f3cfb3a90ba9b5bdfe177054cdbde56">More...</a><br /></td></tr>
<tr class="separator:a2f3cfb3a90ba9b5bdfe177054cdbde56"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a27785e3066801ac0756112211985c941"><td class="memTemplParams" colspan="2">template&lt;typename T_FEATURE &gt; </td></tr>
<tr class="memitem:a27785e3066801ac0756112211985c941"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacestats.html#a27785e3066801ac0756112211985c941">varTodesvstd</a> (T_FEATURE *aioarrayt_varTodesvstd)</td></tr>
<tr class="memdesc:a27785e3066801ac0756112211985c941"><td class="mdescLeft">&#160;</td><td class="mdescRight">Obtain the standard deviation given the variance.  <a href="#a27785e3066801ac0756112211985c941">More...</a><br /></td></tr>
<tr class="separator:a27785e3066801ac0756112211985c941"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad05deabf843908b6a0be813c39a346cd"><td class="memTemplParams" colspan="2">template&lt;typename INPUT_ITERATOR , typename T_FEATURE &gt; </td></tr>
<tr class="memitem:ad05deabf843908b6a0be813c39a346cd"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacestats.html#ad05deabf843908b6a0be813c39a346cd">minFeatures</a> (T_FEATURE *aoarrayt_minFeactures, INPUT_ITERATOR aiiterator_instfirst, const INPUT_ITERATOR aiiterator_instlast)</td></tr>
<tr class="memdesc:ad05deabf843908b6a0be813c39a346cd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Obtain the minimum attributes of the instances.  <a href="#ad05deabf843908b6a0be813c39a346cd">More...</a><br /></td></tr>
<tr class="separator:ad05deabf843908b6a0be813c39a346cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a61fb958f0ffbfa6d41efd10f6e71f062"><td class="memTemplParams" colspan="2">template&lt;typename INPUT_ITERATOR , typename T_FEATURE &gt; </td></tr>
<tr class="memitem:a61fb958f0ffbfa6d41efd10f6e71f062"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacestats.html#a61fb958f0ffbfa6d41efd10f6e71f062">maxFeatures</a> (T_FEATURE *aoarrayt_maxFeactures, INPUT_ITERATOR aiiterator_instfirst, const INPUT_ITERATOR aiiterator_instlast)</td></tr>
<tr class="memdesc:a61fb958f0ffbfa6d41efd10f6e71f062"><td class="mdescLeft">&#160;</td><td class="mdescRight">Obtain the maximum attributes of the instances.  <a href="#a61fb958f0ffbfa6d41efd10f6e71f062">More...</a><br /></td></tr>
<tr class="separator:a61fb958f0ffbfa6d41efd10f6e71f062"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a91d3e4bd49b1fdf4eaf355092becd6bc"><td class="memTemplParams" colspan="2">template&lt;typename INPUT_ITERATOR &gt; </td></tr>
<tr class="memitem:a91d3e4bd49b1fdf4eaf355092becd6bc"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacestats.html#a91d3e4bd49b1fdf4eaf355092becd6bc">matrixVarcovar</a> (INPUT_ITERATOR aiiterator_instfirst, const INPUT_ITERATOR aiiterator_instlast) -&gt; <a class="el" href="classmat_1_1_matrix_row.html">mat::MatrixRow</a>&lt; decltype((*aiiterator_instfirst) -&gt;getAttribute(0))&gt;</td></tr>
<tr class="memdesc:a91d3e4bd49b1fdf4eaf355092becd6bc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get covariance matrix, only for T_FEATURE real.  <a href="#a91d3e4bd49b1fdf4eaf355092becd6bc">More...</a><br /></td></tr>
<tr class="separator:a91d3e4bd49b1fdf4eaf355092becd6bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adf9325db882d4cc7474c23f2eff7dd39"><td class="memTemplParams" colspan="2">template&lt;typename T_FEATURE &gt; </td></tr>
<tr class="memitem:adf9325db882d4cc7474c23f2eff7dd39"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classmat_1_1_matrix_row.html">mat::MatrixRow</a>&lt; T_FEATURE &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacestats.html#adf9325db882d4cc7474c23f2eff7dd39">getMatrixDiagonal</a> (T_FEATURE *aiarrayt_varianceFeactures)</td></tr>
<tr class="memdesc:adf9325db882d4cc7474c23f2eff7dd39"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get weight matrix diagonal for calculate dist induced <a class="el" href="citelist.html#CITEREF_Bezdek:ClusterAnalysis:FCM:1974">[8]</a> <a class="el" href="citelist.html#CITEREF_Bezdek:etal:ClusterAnalysis:FCM:1984">[6]</a> <a class="el" href="citelist.html#CITEREF_Bezdek:etal:GAclustering:GA:1994">[7]</a>.  <a href="#adf9325db882d4cc7474c23f2eff7dd39">More...</a><br /></td></tr>
<tr class="separator:adf9325db882d4cc7474c23f2eff7dd39"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af148eebdd4a419378daf0425678395c6"><td class="memTemplParams" colspan="2">template&lt;typename INPUT_ITERATOR &gt; </td></tr>
<tr class="memitem:af148eebdd4a419378daf0425678395c6"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacestats.html#af148eebdd4a419378daf0425678395c6">getMatrixMahalonobis</a> (INPUT_ITERATOR aiiterator_instfirst, const INPUT_ITERATOR aiiterator_instlast) -&gt; <a class="el" href="classmat_1_1_matrix_row.html">mat::MatrixRow</a>&lt; decltype((*aiiterator_instfirst) -&gt;getAttribute(0))&gt;</td></tr>
<tr class="memdesc:af148eebdd4a419378daf0425678395c6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get weight matrix Mahalonobis for calculate dist induced <a class="el" href="citelist.html#CITEREF_Bezdek:ClusterAnalysis:FCM:1974">[8]</a> <a class="el" href="citelist.html#CITEREF_Bezdek:etal:ClusterAnalysis:FCM:1984">[6]</a> <a class="el" href="citelist.html#CITEREF_Bezdek:etal:GAclustering:GA:1994">[7]</a>.  <a href="#af148eebdd4a419378daf0425678395c6">More...</a><br /></td></tr>
<tr class="separator:af148eebdd4a419378daf0425678395c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a09587632e3c4855da191bc7439c593f0"><td class="memTemplParams" colspan="2">template&lt;typename INPUT_ITERATOR , typename T_FEATURE &gt; </td></tr>
<tr class="memitem:a09587632e3c4855da191bc7439c593f0"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacestats.html#a09587632e3c4855da191bc7439c593f0">transform</a> (INPUT_ITERATOR aiiterator_instfirst, const INPUT_ITERATOR aiiterator_instlast, const <a class="el" href="classmat_1_1_matrix_row.html">mat::MatrixRow</a>&lt; T_FEATURE &gt; &amp;aimatrixrow_transform)</td></tr>
<tr class="memdesc:a09587632e3c4855da191bc7439c593f0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Make a transformation to the instances.  <a href="#a09587632e3c4855da191bc7439c593f0">More...</a><br /></td></tr>
<tr class="separator:a09587632e3c4855da191bc7439c593f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a94939ff1ecbe4d9c96a2e92436bc85b5"><td class="memTemplParams" colspan="2">template&lt;typename T_IDX , typename T &gt; </td></tr>
<tr class="memitem:a94939ff1ecbe4d9c96a2e92436bc85b5"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacestats.html#a94939ff1ecbe4d9c96a2e92436bc85b5">rank</a> (std::vector&lt; std::pair&lt; T_IDX, T &gt; &gt; &amp;aiovectorpair_rank)</td></tr>
<tr class="separator:a94939ff1ecbe4d9c96a2e92436bc85b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Model for transforming the data structure of the instances. </p>
<dl class="section version"><dt>Version</dt><dd>1.0 </dd></dl>
<dl class="section date"><dt>Date</dt><dd>2015-2017 </dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>GPLv3 license </dd></dl>
</div><h2 class="groupheader">Function Documentation</h2>
<a id="adf9325db882d4cc7474c23f2eff7dd39"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adf9325db882d4cc7474c23f2eff7dd39">&#9670;&nbsp;</a></span>getMatrixDiagonal()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T_FEATURE &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classmat_1_1_matrix_row.html">mat::MatrixRow</a>&lt; T_FEATURE &gt; stats::getMatrixDiagonal </td>
          <td>(</td>
          <td class="paramtype">T_FEATURE *&#160;</td>
          <td class="paramname"><em>aiarrayt_varianceFeactures</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get weight matrix diagonal for calculate dist induced <a class="el" href="citelist.html#CITEREF_Bezdek:ClusterAnalysis:FCM:1974">[8]</a> <a class="el" href="citelist.html#CITEREF_Bezdek:etal:ClusterAnalysis:FCM:1984">[6]</a> <a class="el" href="citelist.html#CITEREF_Bezdek:etal:GAclustering:GA:1994">[7]</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">aiarrayt_varianceFeactures</td><td>a array with variance feactures </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="stats__instances_8hpp_source.html#l00842">842</a> of file <a class="el" href="stats__instances_8hpp_source.html">stats_instances.hpp</a>.</p>

<p class="reference">References <a class="el" href="matrix__base_8hpp_source.html#l00076">mat::MatrixBase&lt; T_FEATURE &gt;::getNumRows()</a>, <a class="el" href="matrix_8hpp_source.html#l00129">mat::MatrixRow&lt; T_FEATURE &gt;::initialize()</a>, and <a class="el" href="matrix_8hpp_source.html#l00336">mat::MatrixRow&lt; T_FEATURE &gt;::print()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="namespacestats_adf9325db882d4cc7474c23f2eff7dd39_cgraph.svg" width="435" height="139"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>

</div>
</div>
<a id="af148eebdd4a419378daf0425678395c6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af148eebdd4a419378daf0425678395c6">&#9670;&nbsp;</a></span>getMatrixMahalonobis()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename INPUT_ITERATOR &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classmat_1_1_matrix_row.html">mat::MatrixRow</a>&lt; T_FEATURE &gt; stats::getMatrixMahalonobis </td>
          <td>(</td>
          <td class="paramtype">INPUT_ITERATOR&#160;</td>
          <td class="paramname"><em>aiiterator_instfirst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const INPUT_ITERATOR&#160;</td>
          <td class="paramname"><em>aiiterator_instlast</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> -&gt; <a class="el" href="classmat_1_1_matrix_row.html">mat::MatrixRow</a>&lt;decltype((*aiiterator_instfirst)-&gt;getAttribute(0))&gt; 
</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get weight matrix Mahalonobis for calculate dist induced <a class="el" href="citelist.html#CITEREF_Bezdek:ClusterAnalysis:FCM:1974">[8]</a> <a class="el" href="citelist.html#CITEREF_Bezdek:etal:ClusterAnalysis:FCM:1984">[6]</a> <a class="el" href="citelist.html#CITEREF_Bezdek:etal:GAclustering:GA:1994">[7]</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">aiiterator_instfirst</td><td>an InputIterator to the initial positions of the sequence of instances </td></tr>
    <tr><td class="paramname">aiiterator_instlast</td><td>an InputIterator to the final positions of the sequence of instances </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="stats__instances_8hpp_source.html#l00904">904</a> of file <a class="el" href="stats__instances_8hpp_source.html">stats_instances.hpp</a>.</p>

<p class="reference">References <a class="el" href="matop__openblaslapacke_8hpp_source.html#l00262">mat::inverse()</a>, and <a class="el" href="stats__instances_8hpp_source.html#l00752">matrixVarcovar()</a>.</p>

<p class="reference">Referenced by <a class="el" href="main__gas__clustering_8cpp_source.html#l00198">main()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="namespacestats_af148eebdd4a419378daf0425678395c6_cgraph.svg" width="100%" height="594"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>

</div>
</div>
<a id="a91d3e4bd49b1fdf4eaf355092becd6bc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a91d3e4bd49b1fdf4eaf355092becd6bc">&#9670;&nbsp;</a></span>matrixVarcovar()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename INPUT_ITERATOR &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classmat_1_1_matrix_row.html">mat::MatrixRow</a>&lt; T_FEATURE &gt; stats::matrixVarcovar </td>
          <td>(</td>
          <td class="paramtype">INPUT_ITERATOR&#160;</td>
          <td class="paramname"><em>aiiterator_instfirst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const INPUT_ITERATOR&#160;</td>
          <td class="paramname"><em>aiiterator_instlast</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> -&gt; <a class="el" href="classmat_1_1_matrix_row.html">mat::MatrixRow</a>&lt;decltype((*aiiterator_instfirst)-&gt;getAttribute(0))&gt; 
</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get covariance matrix, only for T_FEATURE real. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">aiiterator_instfirst</td><td>an InputIterator to the initial positions of the sequence of instances </td></tr>
    <tr><td class="paramname">aiiterator_instlast</td><td>an InputIterator to the final positions of the sequence of instances </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="stats__instances_8hpp_source.html#l00752">752</a> of file <a class="el" href="stats__instances_8hpp_source.html">stats_instances.hpp</a>.</p>

<p class="reference">References <a class="el" href="common__interfacelapack_8hpp_source.html#l00025">mat::CblasNoTrans</a>, <a class="el" href="common__interfacelapack_8hpp_source.html#l00025">mat::CblasTrans</a>, <a class="el" href="interface__level2_8hpp_source.html#l00074">interfacesse::gemm()</a>, <a class="el" href="stats__instances_8hpp_source.html#l00310">meanRow()</a>, <a class="el" href="container__instance_8hpp_source.html#l00042">data::toMatrixRowTrans()</a>, and <a class="el" href="interface__level1_8hpp_source.html#l00356">interfacesse::transy()</a>.</p>

<p class="reference">Referenced by <a class="el" href="stats__instances_8hpp_source.html#l00904">getMatrixMahalonobis()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="namespacestats_a91d3e4bd49b1fdf4eaf355092becd6bc_cgraph.svg" width="650" height="291"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>

</div>
</div>
<a id="a61fb958f0ffbfa6d41efd10f6e71f062"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a61fb958f0ffbfa6d41efd10f6e71f062">&#9670;&nbsp;</a></span>maxFeatures()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename INPUT_ITERATOR , typename T_FEATURE &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void stats::maxFeatures </td>
          <td>(</td>
          <td class="paramtype">T_FEATURE *&#160;</td>
          <td class="paramname"><em>aoarrayt_maxFeactures</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">INPUT_ITERATOR&#160;</td>
          <td class="paramname"><em>aiiterator_instfirst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const INPUT_ITERATOR&#160;</td>
          <td class="paramname"><em>aiiterator_instlast</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Obtain the maximum attributes of the instances. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">aoarrayt_maxFeactures</td><td>an output vector with the maximum attributes </td></tr>
    <tr><td class="paramname">aiiterator_instfirst</td><td>an InputIterator to the initial positions of the sequence of instances </td></tr>
    <tr><td class="paramname">aiiterator_instlast</td><td>an InputIterator to the final positions of the sequence of instances </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="stats__instances_8hpp_source.html#l00681">681</a> of file <a class="el" href="stats__instances_8hpp_source.html">stats_instances.hpp</a>.</p>

<p class="reference">References <a class="el" href="container__out_8hpp_source.html#l00050">inout::containerprint()</a>, <a class="el" href="interface__level1_8hpp_source.html#l00069">interfacesse::copy()</a>, <a class="el" href="instance_8hpp_source.html#l00191">data::Instance&lt; T_FEATURE &gt;::getFeatures()</a>, and <a class="el" href="instance_8hpp_source.html#l00145">data::Instance&lt; T_FEATURE &gt;::getNumDimensions()</a>.</p>

<p class="reference">Referenced by <a class="el" href="gagr__fkcentroid_8hpp_source.html#l00070">eac::gagr_fkcentroid()</a>, <a class="el" href="kga__fkcentroid_8hpp_source.html#l00072">eac::kga_fkcentroid()</a>, <a class="el" href="main__stdvar__milligan__cooper1988_8cpp_source.html#l00039">main()</a>, and <a class="el" href="tgca__vkcentroid_8hpp_source.html#l00176">eac::tgca_vkcentroid()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="namespacestats_a61fb958f0ffbfa6d41efd10f6e71f062_cgraph.svg" width="428" height="190"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>

</div>
</div>
<a id="a9997daae39cbd737fb66c52d182e8e6b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9997daae39cbd737fb66c52d182e8e6b">&#9670;&nbsp;</a></span>meanRow()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T_FEATURE , typename T_FEATURE_SUM &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt; T_FEATURE &gt; stats::meanRow </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classmat_1_1_matrix_row.html">mat::MatrixRow</a>&lt; T_FEATURE &gt; &amp;&#160;</td>
          <td class="paramname"><em>aimatrixrowt_instances</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Obtiene un vector con la media de una matriz por columnas. </p>
<p>Get a vector with the mean of one matrix per row </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">aimatrixrowt_instances</td><td>a matrix with the data to average </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>vector with the mean by row </dd></dl>

<p class="definition">Definition at line <a class="el" href="stats__instances_8hpp_source.html#l00310">310</a> of file <a class="el" href="stats__instances_8hpp_source.html">stats_instances.hpp</a>.</p>

<p class="reference">References <a class="el" href="container__out_8hpp_source.html#l00050">inout::containerprint()</a>, <a class="el" href="datatype__instance__integer_8hpp_source.html#l00040">DATATYPE_REAL</a>, <a class="el" href="matrix__base_8hpp_source.html#l00081">mat::MatrixBase&lt; T_FEATURE &gt;::getNumColumns()</a>, <a class="el" href="matrix__base_8hpp_source.html#l00076">mat::MatrixBase&lt; T_FEATURE &gt;::getNumRows()</a>, <a class="el" href="matrix_8hpp_source.html#l00181">mat::MatrixRow&lt; T_FEATURE &gt;::getRow()</a>, and <a class="el" href="interface__level1_8hpp_source.html#l00135">interfacesse::sum()</a>.</p>

<p class="reference">Referenced by <a class="el" href="transformation_8hpp_source.html#l00230">mat::getMatrixTransformPCA()</a>, and <a class="el" href="stats__instances_8hpp_source.html#l00752">matrixVarcovar()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="namespacestats_a9997daae39cbd737fb66c52d182e8e6b_cgraph.svg" width="404" height="240"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>

</div>
</div>
<a id="a61ea16e97e098fc1598f4a2975cb0a24"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a61ea16e97e098fc1598f4a2975cb0a24">&#9670;&nbsp;</a></span>meanVector()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T_FEATURE , typename T_FEATURE_SUM , typename T_FEATURE_NUM &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void stats::meanVector </td>
          <td>(</td>
          <td class="paramtype">T_FEATURE *&#160;</td>
          <td class="paramname"><em>aoarrayt_mean</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const T_FEATURE_NUM&#160;</td>
          <td class="paramname"><em>ait_feactureNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const T_FEATURE_SUM *&#160;</td>
          <td class="paramname"><em>aiarrayt_feactureSum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="common_8hpp.html#a3f6c33fb604556cdc425e7aa2289d009">uintidx</a>&#160;</td>
          <td class="paramname"><em>aiu_idxVector</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>￼Calculate average of a vector </p>
<p>For a sum of feactures, calculate the average </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">aoarrayt_mean</td><td>an array to store the average result </td></tr>
    <tr><td class="paramname">ait_feactureNum</td><td>an integer with the number of feactures </td></tr>
    <tr><td class="paramname">aiarrayt_feactureSum</td><td>an array with the sum of feactures </td></tr>
    <tr><td class="paramname">aiu_idxVector</td><td>an identifier of the vector number, for control </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="stats__instances_8hpp_source.html#l00055">55</a> of file <a class="el" href="stats__instances_8hpp_source.html">stats_instances.hpp</a>.</p>

<p class="reference">References <a class="el" href="interface__level1_8hpp_source.html#l00244">interfacesse::axpyInv()</a>, <a class="el" href="container__out_8hpp_source.html#l00050">inout::containerprint()</a>, and <a class="el" href="interface__level1_8hpp_source.html#l00046">interfacesse::copya()</a>.</p>

<p class="reference">Referenced by <a class="el" href="clustering__operator__centroids_8hpp_source.html#l01760">clusteringop::fillEmptyPartitions()</a>, <a class="el" href="clustering__operator__centroids_8hpp_source.html#l00608">clusteringop::getCentroids()</a>, <a class="el" href="chromosome__igka_8hpp_source.html#l00431">gaencode::ChromosomeIGKA&lt; T_CLUSTERIDX, T_METRIC, T_FEATURE, T_FEATURE_SUM, T_INSTANCES_CLUSTER_K &gt;::incrementalUpdate()</a>, <a class="el" href="unsupervised__measures_8hpp_source.html#l04222">um::indexI()</a>, <a class="el" href="unsupervised__measures_8hpp_source.html#l04535">um::indexIreeval()</a>, <a class="el" href="main__gas__clustering_8cpp_source.html#l00198">main()</a>, <a class="el" href="clustering__operator__centroids_8hpp_source.html#l00066">clusteringop::meanCentroids()</a>, <a class="el" href="unsupervised__measures_8hpp_source.html#l01939">um::scoreFunction()</a>, <a class="el" href="unsupervised__measures_8hpp_source.html#l02065">um::scoreFunctionreeval()</a>, <a class="el" href="unsupervised__measures_8hpp_source.html#l01346">um::ssbreeval()</a>, <a class="el" href="unsupervised__measures_8hpp_source.html#l01431">um::VRC()</a>, <a class="el" href="unsupervised__measures_8hpp_source.html#l01547">um::VRCreeval()</a>, <a class="el" href="unsupervised__measures_8hpp_source.html#l01690">um::WBIndex()</a>, and <a class="el" href="unsupervised__measures_8hpp_source.html#l01805">um::WBIndexreeval()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="namespacestats_a61ea16e97e098fc1598f4a2975cb0a24_cgraph.svg" width="339" height="139"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>

</div>
</div>
<a id="ad05deabf843908b6a0be813c39a346cd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad05deabf843908b6a0be813c39a346cd">&#9670;&nbsp;</a></span>minFeatures()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename INPUT_ITERATOR , typename T_FEATURE &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void stats::minFeatures </td>
          <td>(</td>
          <td class="paramtype">T_FEATURE *&#160;</td>
          <td class="paramname"><em>aoarrayt_minFeactures</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">INPUT_ITERATOR&#160;</td>
          <td class="paramname"><em>aiiterator_instfirst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const INPUT_ITERATOR&#160;</td>
          <td class="paramname"><em>aiiterator_instlast</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Obtain the minimum attributes of the instances. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">aoarrayt_minFeactures</td><td>an output vector with the minimum attributes </td></tr>
    <tr><td class="paramname">aiiterator_instfirst</td><td>an InputIterator to the initial positions of the sequence of instances </td></tr>
    <tr><td class="paramname">aiiterator_instlast</td><td>an InputIterator to the final positions of the sequence of instances </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="stats__instances_8hpp_source.html#l00608">608</a> of file <a class="el" href="stats__instances_8hpp_source.html">stats_instances.hpp</a>.</p>

<p class="reference">References <a class="el" href="container__out_8hpp_source.html#l00050">inout::containerprint()</a>, <a class="el" href="interface__level1_8hpp_source.html#l00069">interfacesse::copy()</a>, <a class="el" href="instance_8hpp_source.html#l00191">data::Instance&lt; T_FEATURE &gt;::getFeatures()</a>, and <a class="el" href="instance_8hpp_source.html#l00145">data::Instance&lt; T_FEATURE &gt;::getNumDimensions()</a>.</p>

<p class="reference">Referenced by <a class="el" href="gagr__fkcentroid_8hpp_source.html#l00070">eac::gagr_fkcentroid()</a>, <a class="el" href="kga__fkcentroid_8hpp_source.html#l00072">eac::kga_fkcentroid()</a>, <a class="el" href="main__stdvar__milligan__cooper1988_8cpp_source.html#l00039">main()</a>, and <a class="el" href="tgca__vkcentroid_8hpp_source.html#l00176">eac::tgca_vkcentroid()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="namespacestats_ad05deabf843908b6a0be813c39a346cd_cgraph.svg" width="423" height="190"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>

</div>
</div>
<a id="a94939ff1ecbe4d9c96a2e92436bc85b5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a94939ff1ecbe4d9c96a2e92436bc85b5">&#9670;&nbsp;</a></span>rank()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T_IDX , typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void stats::rank </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; std::pair&lt; T_IDX, T &gt; &gt; &amp;&#160;</td>
          <td class="paramname"><em>aiovectorpair_rank</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="stats__instances_8hpp_source.html#l01038">1038</a> of file <a class="el" href="stats__instances_8hpp_source.html">stats_instances.hpp</a>.</p>

<p class="reference">Referenced by <a class="el" href="main__stdvar__milligan__cooper1988_8cpp_source.html#l00039">main()</a>.</p>

</div>
</div>
<a id="a706b4964413c76c4c7d34ab17985e9e4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a706b4964413c76c4c7d34ab17985e9e4">&#9670;&nbsp;</a></span>sumFeactures()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename INPUT_ITERATOR , typename T_FEATURE_SUM , typename T_FEATURE &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void stats::sumFeactures </td>
          <td>(</td>
          <td class="paramtype">T_FEATURE_SUM *&#160;</td>
          <td class="paramname"><em>aoarrayt_sumFeactures</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">INPUT_ITERATOR&#160;</td>
          <td class="paramname"><em>aiiterator_instfirst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const INPUT_ITERATOR&#160;</td>
          <td class="paramname"><em>aiiterator_instlast</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const T_FEATURE&#160;</td>
          <td class="paramname"><em>ait_initialValue</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Add the instances by attributes. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">aoarrayt_sumFeactures</td><td>an output vector with the sum of the instances </td></tr>
    <tr><td class="paramname">aiiterator_instfirst</td><td>an InputIterator to the initial positions of the sequence of instances </td></tr>
    <tr><td class="paramname">aiiterator_instlast</td><td>an InputIterator to the final positions of the sequence of instances </td></tr>
    <tr><td class="paramname">ait_initialValue</td><td>value with which the output vector is initialized </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="stats__instances_8hpp_source.html#l00141">141</a> of file <a class="el" href="stats__instances_8hpp_source.html">stats_instances.hpp</a>.</p>

<p class="reference">References <a class="el" href="interface__level1_8hpp_source.html#l00156">interfacesse::axpy()</a>, <a class="el" href="container__out_8hpp_source.html#l00050">inout::containerprint()</a>, <a class="el" href="interface__level1_8hpp_source.html#l00046">interfacesse::copya()</a>, <a class="el" href="instance_8hpp_source.html#l00191">data::Instance&lt; T_FEATURE &gt;::getFeatures()</a>, and <a class="el" href="instance_8hpp_source.html#l00145">data::Instance&lt; T_FEATURE &gt;::getNumDimensions()</a>.</p>

<p class="reference">Referenced by <a class="el" href="unsupervised__measures_8hpp_source.html#l04222">um::indexI()</a>, <a class="el" href="unsupervised__measures_8hpp_source.html#l04535">um::indexIreeval()</a>, <a class="el" href="main__gas__clustering_8cpp_source.html#l00198">main()</a>, <a class="el" href="unsupervised__measures_8hpp_source.html#l01939">um::scoreFunction()</a>, <a class="el" href="unsupervised__measures_8hpp_source.html#l02065">um::scoreFunctionreeval()</a>, <a class="el" href="unsupervised__measures_8hpp_source.html#l01346">um::ssbreeval()</a>, <a class="el" href="unsupervised__measures_8hpp_source.html#l01431">um::VRC()</a>, <a class="el" href="unsupervised__measures_8hpp_source.html#l01547">um::VRCreeval()</a>, <a class="el" href="unsupervised__measures_8hpp_source.html#l01690">um::WBIndex()</a>, and <a class="el" href="unsupervised__measures_8hpp_source.html#l01805">um::WBIndexreeval()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="namespacestats_a706b4964413c76c4c7d34ab17985e9e4_cgraph.svg" width="434" height="240"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>

</div>
</div>
<a id="a613d1db29f5e2b636315f547fb1ba89a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a613d1db29f5e2b636315f547fb1ba89a">&#9670;&nbsp;</a></span>sumFeacturesFreq()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename INPUT_ITERATOR , typename T_FEATURE_SUM , typename T_FEATURE , typename FUNCTIONFREQ &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8hpp.html#a3f6c33fb604556cdc425e7aa2289d009">uintidx</a> stats::sumFeacturesFreq </td>
          <td>(</td>
          <td class="paramtype">T_FEATURE_SUM *&#160;</td>
          <td class="paramname"><em>aoarrayt_sumFeactures</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">INPUT_ITERATOR&#160;</td>
          <td class="paramname"><em>aiiterator_instfirst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const INPUT_ITERATOR&#160;</td>
          <td class="paramname"><em>aiiterator_instlast</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const T_FEATURE&#160;</td>
          <td class="paramname"><em>ait_initialValue</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const FUNCTIONFREQ&#160;</td>
          <td class="paramname"><em>func_freq</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Add the instances with frequency by attributes. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">aoarrayt_sumFeactures</td><td>an output vector with the sum of the instances </td></tr>
    <tr><td class="paramname">aiiterator_instfirst</td><td>an InputIterator to the initial positions of the sequence of instances </td></tr>
    <tr><td class="paramname">aiiterator_instlast</td><td>an InputIterator to the final positions of the sequence of instances </td></tr>
    <tr><td class="paramname">ait_initialValue</td><td>value with which the output vector is initialized </td></tr>
    <tr><td class="paramname">func_freq</td><td>a function that gets the frequency of the instance that is adding up </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="stats__instances_8hpp_source.html#l00221">221</a> of file <a class="el" href="stats__instances_8hpp_source.html">stats_instances.hpp</a>.</p>

<p class="reference">References <a class="el" href="interface__level1_8hpp_source.html#l00156">interfacesse::axpy()</a>, <a class="el" href="container__out_8hpp_source.html#l00050">inout::containerprint()</a>, <a class="el" href="interface__level1_8hpp_source.html#l00046">interfacesse::copya()</a>, <a class="el" href="datatype__instance__integer_8hpp_source.html#l00025">DATATYPE_CENTROIDS_ROUND</a>, <a class="el" href="instance_8hpp_source.html#l00191">data::Instance&lt; T_FEATURE &gt;::getFeatures()</a>, and <a class="el" href="instance_8hpp_source.html#l00145">data::Instance&lt; T_FEATURE &gt;::getNumDimensions()</a>.</p>

<p class="reference">Referenced by <a class="el" href="main__gas__clustering_8cpp_source.html#l00198">main()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="namespacestats_a613d1db29f5e2b636315f547fb1ba89a_cgraph.svg" width="462" height="240"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>

</div>
</div>
<a id="a2f3cfb3a90ba9b5bdfe177054cdbde56"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2f3cfb3a90ba9b5bdfe177054cdbde56">&#9670;&nbsp;</a></span>sumFeacturesFreqSQ()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename INPUT_ITERATOR , typename T_FEATURE_SUM , typename T_FEATURE , typename FUNCTIONFREQ &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void stats::sumFeacturesFreqSQ </td>
          <td>(</td>
          <td class="paramtype">T_FEATURE_SUM *&#160;</td>
          <td class="paramname"><em>aoarrayt_sumFeacturesSQ</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">T_FEATURE *&#160;</td>
          <td class="paramname"><em>aiarrayt_meanFeactures</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">INPUT_ITERATOR&#160;</td>
          <td class="paramname"><em>aiiterator_instfirst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const INPUT_ITERATOR&#160;</td>
          <td class="paramname"><em>aiiterator_instlast</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const FUNCTIONFREQ&#160;</td>
          <td class="paramname"><em>func_freq</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the sum of the difference of the instances with the mean and the result square. For instances frequently. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">aoarrayt_sumFeacturesSQ</td><td>an output vector with the sum </td></tr>
    <tr><td class="paramname">aiarrayt_meanFeactures</td><td>an input vector with the mean of the instances </td></tr>
    <tr><td class="paramname">aiiterator_instfirst</td><td>an InputIterator to the initial positions of the sequence of instances </td></tr>
    <tr><td class="paramname">aiiterator_instlast</td><td>an InputIterator to the final positions of the sequence of instances </td></tr>
    <tr><td class="paramname">func_freq</td><td>a function that gets the frequency of the instance that is adding up </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="stats__instances_8hpp_source.html#l00464">464</a> of file <a class="el" href="stats__instances_8hpp_source.html">stats_instances.hpp</a>.</p>

<p class="reference">References <a class="el" href="container__out_8hpp_source.html#l00050">inout::containerprint()</a>, <a class="el" href="interface__level1_8hpp_source.html#l00046">interfacesse::copya()</a>, and <a class="el" href="instance_8hpp_source.html#l00191">data::Instance&lt; T_FEATURE &gt;::getFeatures()</a>.</p>

<p class="reference">Referenced by <a class="el" href="main__gas__clustering_8cpp_source.html#l00198">main()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="namespacestats_a2f3cfb3a90ba9b5bdfe177054cdbde56_cgraph.svg" width="436" height="139"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>

</div>
</div>
<a id="a6b3be9207e48f3af2c75ad45db17ac70"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6b3be9207e48f3af2c75ad45db17ac70">&#9670;&nbsp;</a></span>sumFeacturesSQ()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename INPUT_ITERATOR , typename T_FEATURE_SUM , typename T_FEATURE &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void stats::sumFeacturesSQ </td>
          <td>(</td>
          <td class="paramtype">T_FEATURE_SUM *&#160;</td>
          <td class="paramname"><em>aoarrayt_sumFeacturesSQ</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">T_FEATURE *&#160;</td>
          <td class="paramname"><em>aiarrayt_meanFeactures</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">INPUT_ITERATOR&#160;</td>
          <td class="paramname"><em>aiiterator_instfirst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const INPUT_ITERATOR&#160;</td>
          <td class="paramname"><em>aiiterator_instlast</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the sum of the difference of the instances with the mean and the result square. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">aoarrayt_sumFeacturesSQ</td><td>an output vector with the sum </td></tr>
    <tr><td class="paramname">aiarrayt_meanFeactures</td><td>an input vector with the mean of the instances </td></tr>
    <tr><td class="paramname">aiiterator_instfirst</td><td>an InputIterator to the initial positions of the sequence of instances </td></tr>
    <tr><td class="paramname">aiiterator_instlast</td><td>an InputIterator to the final positions of the sequence of instances </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="stats__instances_8hpp_source.html#l00388">388</a> of file <a class="el" href="stats__instances_8hpp_source.html">stats_instances.hpp</a>.</p>

<p class="reference">References <a class="el" href="container__out_8hpp_source.html#l00050">inout::containerprint()</a>, <a class="el" href="interface__level1_8hpp_source.html#l00046">interfacesse::copya()</a>, and <a class="el" href="instance_8hpp_source.html#l00191">data::Instance&lt; T_FEATURE &gt;::getFeatures()</a>.</p>

<p class="reference">Referenced by <a class="el" href="main__gas__clustering_8cpp_source.html#l00198">main()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="namespacestats_a6b3be9207e48f3af2c75ad45db17ac70_cgraph.svg" width="408" height="139"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>

</div>
</div>
<a id="a09587632e3c4855da191bc7439c593f0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a09587632e3c4855da191bc7439c593f0">&#9670;&nbsp;</a></span>transform()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename INPUT_ITERATOR , typename T_FEATURE &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void stats::transform </td>
          <td>(</td>
          <td class="paramtype">INPUT_ITERATOR&#160;</td>
          <td class="paramname"><em>aiiterator_instfirst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const INPUT_ITERATOR&#160;</td>
          <td class="paramname"><em>aiiterator_instlast</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classmat_1_1_matrix_row.html">mat::MatrixRow</a>&lt; T_FEATURE &gt; &amp;&#160;</td>
          <td class="paramname"><em>aimatrixrow_transform</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Make a transformation to the instances. </p>
<p>void transform (INPUT_ITERATOR aiiterator_instfirst, const INPUT_ITERATOR aiiterator_instlast, const mat::MatrixRow&lt;T_FEATURE&gt; &amp;aimatrixrow_transform)</p>
<p class="formulaDsp">
<img class="formulaDsp" alt="\[ x_{i}^{'} = A \cdot x_{i} \]" src="form_51.png"/>
</p>
 <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">aiiterator_instfirst</td><td>an InputIterator to the initial positions of the sequence of instances </td></tr>
    <tr><td class="paramname">aiiterator_instlast</td><td>an InputIterator to the final positions of the sequence of instances </td></tr>
    <tr><td class="paramname">aimatrixrow_transform</td><td>a transformation matrix </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="stats__instances_8hpp_source.html#l00967">967</a> of file <a class="el" href="stats__instances_8hpp_source.html">stats_instances.hpp</a>.</p>

<p class="reference">References <a class="el" href="interface__level1_8hpp_source.html#l00069">interfacesse::copy()</a>, <a class="el" href="interface__level2_8hpp_source.html#l00043">interfacesse::gemv()</a>, and <a class="el" href="instance_8hpp_source.html#l00145">data::Instance&lt; T_FEATURE &gt;::getNumDimensions()</a>.</p>

<p class="reference">Referenced by <a class="el" href="stats__instances_8hpp_source.html#l00536">varTodesvstd()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="namespacestats_a09587632e3c4855da191bc7439c593f0_cgraph.svg" width="100%" height="404"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>

</div>
</div>
<a id="a27785e3066801ac0756112211985c941"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a27785e3066801ac0756112211985c941">&#9670;&nbsp;</a></span>varTodesvstd()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T_FEATURE &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void stats::varTodesvstd </td>
          <td>(</td>
          <td class="paramtype">T_FEATURE *&#160;</td>
          <td class="paramname"><em>aioarrayt_varTodesvstd</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Obtain the standard deviation given the variance. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">aioarrayt_varTodesvstd</td><td>an input and output vector with the variances of the attributes of the instances </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="stats__instances_8hpp_source.html#l00536">536</a> of file <a class="el" href="stats__instances_8hpp_source.html">stats_instances.hpp</a>.</p>

<p class="reference">References <a class="el" href="container__out_8hpp_source.html#l00050">inout::containerprint()</a>, <a class="el" href="datatype__instance__integer_8hpp_source.html#l00040">DATATYPE_REAL</a>, and <a class="el" href="stats__instances_8hpp_source.html#l00967">transform()</a>.</p>

<p class="reference">Referenced by <a class="el" href="main__gas__clustering_8cpp_source.html#l00198">main()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="namespacestats_a27785e3066801ac0756112211985c941_cgraph.svg" width="100%" height="404"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 19 2019 08:58:36 for Library Evolutionary Algorithms for Clustering (LEAC) by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
